Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

205
Vistas
Special character "?" is converted to unicode when set in location pathname

I have an issue where I set the window's path to '/payment/success?username=the+users+name' by using the following code:

window.location.pathname = `/payment/success?userName=the+users+name}`;

The issue is, that the page reloads, the actual path turns out to be:

/payment/success/account-created%3FuserName=the+users+name

For some reason, either JS or the browser is converting my "?" into "%3F", and I can't parse the paramater set in the url.

How can I stop it from encoding the special character?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda